home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1990 / Jan 90 / MacApp.Tech$ 1⁄12⁄90 / 0373-Clone()-Jan90 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.3 KB  |  44 lines  |  [TEXT/GEOL]

  1. Item    7940080                         9-Jan-90        07:03
  2.  
  3. From:   POWERUP.DEV                     Power Up Software,PRT
  4.  
  5. To:     MACAPP.TECH$                    MacApp Technical
  6.  
  7. Sub:    Clone()
  8.  
  9. Attn:  MacApp.Tech$
  10. SentBy: James Plamondon
  11. Date   1/8/90
  12. Subject    Clone()
  13. From   James Plamondon
  14. To  MacApp.Tech$
  15.  
  16. Subject:   Clone()
  17. Gentlepersons,
  18.  
  19. I was about to implement a command which allows the user to redefine a complex
  20. (but fairly small) object via a dialog.  It seemed logical to clone the object
  21. being redefined, so that I could implement Undo() by simply swapping the old
  22. object for the modified one.  Specifically, I need to clone an object
  23. containing a list of objects, and the objects in the list (and their objects,
  24. and their objects...).  I was surprised to find no overrides of Clone()
  25. anywhere in MacApp — meaning that all clones are shallow clones.
  26.  
  27. This was very unexpected.  (I expected to find a OVERRIDE of Clone() in TList,
  28. at least.)  It implies that needing a deep clone is a symptom of an error in
  29. design.  Can anyone enlighten me on this matter?
  30.  
  31. Looking forward to deeper understanding (if not cloning), I am
  32.  
  33. Yours,
  34.  
  35.  
  36. James Plamondon
  37. Software Engineer
  38. PowerUp! Software
  39. 2929 Campus Drive, Suite 300
  40. San Mateo, CA  94403
  41. (415) 345-5900 x351
  42. AppleLink: PowerUp.Eng
  43.  
  44.